﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using SpriteExtractor.ViewModel;

namespace SpriteExtractor
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {

        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            //create the model
            var extractor = new Model.ImageManager();
            
            //create the view-model
            var windowViewModel = new ViewModel.MainWindowViewModel(extractor);
            windowViewModel.FileSystemService = new View.FileSystemService();

            //create the view
            var window = new View.MainWindow();
            window.DataContext = windowViewModel;
            window.Show();
        }
    }
}
